<template>
	<view class="icon-placeholder iconfont unify-absolute" :style="{'bottom': bottom}" :class="icon">
		<view class="desc">{{desc}}</view>
	</view>
</template>

<script>
	export default {
		props: {
			icon: {
				type: String,
				default: 'el-icon-meiyoushuju'
			},
			desc: {
				type: String,
				default: '空空如也'
			},
			bottom: {
				type: String,
				default: ''
			}
		}
	}
</script>

<style lang="scss">
	.icon-placeholder {
		width: max-content;
		height: max-content;
		font-size: 80px;
		color: $uni-text-color-grey;
		text-align: center;
		left: 0;
		right: 0;
		top: 0;
		bottom: 0;
		margin: auto;
	}
	
	.desc {
		font-size: $uni-font-size-sm;
		margin-top: 20rpx;
	}
</style>